package com.yaofeng.mybatis.modules.sys.mapper;

import com.yaofeng.mybatis.modules.sys.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yaofeng.mybatis.modules.sys.vo.SelectTreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author yaofeng
 * @since 2019-11-12
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<SelectTreeVo> findMenuTreeList();

    List<SelectTreeVo> findMenuList(@Param("params") Map<String,Object> params);

    List<String> getBtnPermsByUserId(@Param("userId")Long userId);
}
